package com.cnsoft.player.h5.player;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.cnsoft.MyWxPLayerPageControllerSupport;

/**
 * 我的
 * 
 * @author Zmsoft
 * @version 0.1.0 2018/4/2
 * @since 0.1.0 2018/4/2
 */
@Controller
@RequestMapping(value = "/player/1.0/h5/me")
public class WXPlayerDataController extends MyWxPLayerPageControllerSupport {

	//实名认证
	@RequestMapping(value = "/real.ok", method = RequestMethod.POST)
	public ModelAndView doIndex2() throws Exception {
		ModelAndView modelAndView = getModelAndView("/weixinplayercommon/player-command-ok");
		modelAndView.addObject("message", "提交成功，请等待审核");
		return modelAndView;
	}
	
	//身份切换
	@RequestMapping(value = "/identity.ok", method = RequestMethod.POST)
	public ModelAndView doIndex3() throws Exception {
		ModelAndView modelAndView = getModelAndView("/weixinplayercommon/player-command-ok");
		//检查用户身份资料
		//审核完成的场合直接打开页面
		{
			modelAndView = getModelAndView("/weixinplayercommon/player-me-team");
			modelAndView = getModelAndView("/weixinplayercommon/player-me-company");
		}
		modelAndView.addObject("message", "提交成功，请等待审核");
		return modelAndView;
	}
}
